<?xml version="1.0" encoding="UTF-8"?>
<!--
To change this template, choose Tools | Templates
and open the template in the editor.
-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
                xmlns:ui="http://java.sun.com/jsf/facelets"
                xmlns:h="http://java.sun.com/jsf/html"
                xmlns:a4j="http://richfaces.org/a4j"
                xmlns:rich="http://richfaces.org/rich"
                xmlns:f="http://java.sun.com/jsf/core"
                template="/template.xhtml">

    <ui:define name="conteudo">
        <h:panelGroup id="messagePanel" layout="block">
                <h:messages errorStyle="color: red" infoStyle="color: green" layout="table"/>
        </h:panelGroup>
            <h4>#{msg['adicionar_cargo']}</h4>
                <h:panelGrid columns="2">
                    <h:outputText value="#{msg['nome_cargo']}:"/>
                    <h:inputText id="cargo" value="#{cargo.cargos.cargo}" title="Cargo" required="true" requiredMessage="The cargo field is required." />
                    <h:outputText value="#{msg['salario_base']}:"/>
                    <h:inputText id="salarioBase" value="#{cargo.cargos.salarioBase}" title="SalarioBase" required="true" requiredMessage="The salarioBase field is required." />
                    <h:commandButton action="#{cargo.edit}" value="#{msg['salver']}"/>
                </h:panelGrid>
    </ui:define>

</ui:composition>
